initial_flag = 0